/*
 * @Author: wangzhongjie
 * @Date: 2020-01-08 09:27:34
 * @LastEditors: wangzhongjie
 * @LastEditTime: 2020-03-11 10:44:34
 * @Description:主体路由
 * @Email: UvDream@163.com
 */
import React, { Fragment } from "react";
import { Route } from "react-router-dom";

import Dashboard from "../dashboard/index";
import AddArticle from "../add-article/index";
import ArticleList from "../article-list/index";
import ArticleTypes from "../article-types/index";
import Github from "../github/index";
import AddGithub from "../github/add";
import ImagesList from "../images-list/index";
const AppRouter = () => {
  return (
    <Fragment>
      <Route path="/index/dashboard" exact component={Dashboard}></Route>
      <Route path="/index/addArticle" exact component={AddArticle}></Route>
      <Route path="/index/addArticle/:id" exact component={AddArticle}></Route>
      <Route path="/index/articleList" exact component={ArticleList}></Route>
      <Route path="/index/articleTypes" exact component={ArticleTypes}></Route>
      <Route path="/index/github" exact component={Github}></Route>
      <Route path="/index/addGithub" exact component={AddGithub}></Route>
      <Route path="/index/addGithub/:id" exact component={AddGithub}></Route>
      <Route path="/index/imagesList" exact component={ImagesList}></Route>
    </Fragment>
  );
};
export default AppRouter;
